<template>
  <div id="app">
    <router-link :to="{ path: '/AAAA'}">
      <p>AAAAA</p>
    </router-link>
    <router-link :to="{ path: '/BBBB'}">
      <p>BBBB</p>
      <van-button type="default">默认按钮</van-button>
    </router-link>
    <router-view/>
  </div>
</template>

<script>
export default {
  name: "App",
 
   mounted() {
    //vuex  actions中  获取所有 店铺的类型
    this.$store.dispatch("actions_getAllType");
    //获取 美食页 购物页的分页类型
    setTimeout(() => {
      // // 所有店铺类型
      console.log(
        "所有店铺类型   this.$store.state.AllShopTypes :",
        this.$store.state.AllShopTypes
      );
      console.log(
        "美食店铺类型   this.$store.state.AllShopTypes :",
        this.$store.state.DeliciousFoodShopTypes
      );
      console.log(
        "购物店铺类型   this.$store.state.AllShopTypes :",
        this.$store.state.ShoppingStoreTypes
      );
     
    }, 500);
   }
};
</script>

<style lang="less">
#app {
  font-family: "Avenir", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  margin-top: 60px;
  img {
    width: 100px;
    height: 100px;
    display: block;
  }
  .van-button {
    width: 216px;
    height:  216px;
  }
  .box {
    width: 300px;
    height: 500px;
    background-color: red;
  }
}
</style>
